package cn.liulin.llrenjianjie.controller;

import cn.liulin.llcommon.pojo.response.ResObj;
import cn.liulin.llxianjieapi.client.XianJieUserClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * cn.liulin.llrenjianjie.controller$
 *
 * @author ll
 * @date 2022-01-18 13:55:33
 **/
@RestController
@RequestMapping("/renjianjie/user")
public class UserController {

    @Resource
    private XianJieUserClient xianJieUserClient;

    @GetMapping("/getUser")
    public ResObj getUser() {
        ResObj userInfo = xianJieUserClient.getUserInfo();
        return ResObj.ok(userInfo.getData());
    }
}
